{extend name="layout"/}

{block name="breadcrumb"}
<h2>我的优惠券</h2>
<ol class="breadcrumb">
    <li><a href="{:url('index/index')}">首页</a></li>
    <li><strong>我的优惠券</strong></li>
</ol>
{/block}

{block name="search"}
{include file='coupon/search'/}
{/block}

{block name="main"}
<div class="ibox float-e-margins">
    <div class="ibox-title">
        <h5>我的优惠券</h5>
    </div>
    <div class="ibox-content">
        <div class="table-responsive">
            <p>共 {$count} 条数据</p>
            <table class="table table-striped">
                <thead>
                <tr>
                    <th>ID</th>
                    <th>名称</th>
                    <th>金额</th>
                    <th>有效期</th>
                    <th>使用规则</th>
                    <th>使用状态</th>
                    <th>使用订单号</th>
                    <th>创建时间</th>
                    <th>使用时间</th>
                </tr>
                </thead>
                <tbody>
                {foreach $model as $key=>$vo }
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.name}</td>
                    <td>{$vo.money}</td>
                    <td>{$vo.start_time} --- {$vo.end_time}</td>
                    <td>{$vo.rule}</td>
                    <td>{$vo.use_status}</td>
                    <td>{$vo.order_sn}</td>
                    <td>{$vo.create_time}</td>
                    <td>{$vo.use_time}</td>
                </tr>
                {/foreach}
                </tbody>
            </table>
            {$model|raw}
        </div>

    </div>
</div>
{/block}